﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class SachDTO
    {
        private int _id;
        private String _maSach;
        private String _tenSach;
        private String _chiTietSach;
        private String _maLoaiSach;
        private String _tacGia;
        private String _nhaXuatBan;
        private DateTime _ngayXuatBan;
        private Double _giaBan;
        private int _soLuong;
        private String _hinhAnh;
        private bool _tinhTrangXoa;

        public SachDTO()
        {
            this._maSach = "";
            this._tenSach = "";
            this._chiTietSach = "";
            this._maLoaiSach = "";
            this._tacGia = "";
            this._nhaXuatBan = "";
            this._ngayXuatBan = DateTime.MinValue;
            this._giaBan = Double.MinValue;
            this._tinhTrangXoa = false;
        }

        public SachDTO(String maSach, String tenSach, String chiTiet, String idLoai, String tacGia,String nhaXuatBan, DateTime ngayXuatBan, Double giaBan, int soLuong, bool tinhTrang)
        {
            this._maSach = maSach;
            this._tenSach = tenSach;
            this._chiTietSach = chiTiet;
            this._maLoaiSach = idLoai;
            this._tacGia = tacGia;
            this._nhaXuatBan = nhaXuatBan;
            this._ngayXuatBan = ngayXuatBan;
            this._giaBan = giaBan;
            this._tinhTrangXoa = tinhTrang;
        }

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public String MaSach
        {
            get { return _maSach; }
            set { _maSach = value; }
        }

        public String TenSach
        {
            get { return _tenSach; }
            set { _tenSach = value; }
        }

        public String ChiTietSach
        {
            get { return _chiTietSach; }
            set { _chiTietSach = value; }
        }

        public String IdLoaiSach
        {
            get { return _maLoaiSach; }
            set { _maLoaiSach = value; }
        }

        public String TacGia
        {
            get { return _tacGia; }
            set { _tacGia = value; }
        }

        public String NhaXuatBan
        {
            get { return _nhaXuatBan; }
            set { _nhaXuatBan = value; }
        }

        public DateTime NgayXuatBan
        {
            get { return _ngayXuatBan; }
            set { _ngayXuatBan = value; }
        }

        public Double GiaBan
        {
            get { return _giaBan; }
            set { _giaBan = value; }
        }

        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }

        public String HinhAnh
        {
            get { return _hinhAnh; }
            set { _hinhAnh = value; }
        }

        public bool TinhTrang
        {
            get { return _tinhTrangXoa; }
            set { _tinhTrangXoa = value; }
        }
    }
}
